package com.dyh.scdemo.fprovider.api;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/*
@Author=Joey Wheeler
@Date=2020/10/28 11:31
*/
/*
发现feign一个bug 如果这里RequestMapping("hello")的话会 consumer方调用报错StackOverflow
 */
@RequestMapping("/HelloApi")
public interface HelloApi {

    @GetMapping("/hello/{msg}")
    String hello(@PathVariable String msg);

    @GetMapping("/error")
    String error();

    @GetMapping("/timeout/{n}")
    String timeout(@PathVariable int n);
}
